-- GENERATED SPELL FOR [Hatecrest Myrmidon] --


function spell0_5334(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5334', 2299, 1)
end

function Sorts_5334(pUnit, Event)
local choix_sorts_5334 = math.random(0, 0)
if choix_sorts_5334 == 0 then
pUnit:RegisterEvent('spell0_5334', 1, 1)
end
end

function mob5334_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5334', math.random(1500, 3000), 1)
end

function mob5334_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5334_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5334_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5334, 1, 'mob5334_Action')
RegisterUnitEvent(5334, 2, 'mob5334_Leave')
RegisterUnitEvent(5334, 3, 'mob5334_Kill')
RegisterUnitEvent(5334, 4, 'mob5334_Die')
